package com.atguigu.state;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 奖品发放完毕状态
 *  说明：当我们activity 改变成 DispenseOutState状态，抽奖活动结束
 * @create: 2022-03-30 17:15
 **/
public class DispenseOutState extends State{

    RaffleActivity activity;

    public DispenseOutState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("奖品发放完了，请下次再参加");
    }

    @Override
    public boolean raffle() {
        System.out.println("奖品发放完了，请下次再参加");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("奖品发放完了，请下次再参加");
    }
}
